package com.echo.im.domain.message.model;

import com.echo.im.client.model.PlatformMessageVO;
import com.echo.im.common.enums.IMPlatformMsgType;
import com.echo.im.common.enums.TerminalType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: echo
 * @time: 2024-08-16
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class UserLogoutMessage extends PlatformMessageVO {

    private Long userId;

    private List<Integer> terminalList= TerminalType.codes();

    @Override
    public Integer getType() {
        return IMPlatformMsgType.USER_LOGOUT.code();
    }

}
